#!/bin/sh

killall -9 hostapd udhcpd udhcpc wpa_supplicant
ifconfig wlan0 down
cp /duke/apd.conf /tmp/
echo "ssid=`cat /etc/hostname`" >> /tmp/apd.conf
hostapd /tmp/apd.conf &
ifconfig wlan0 192.168.0.1
udhcpd /duke/udhcpd.conf
